package com.sky.mapper;

import com.sky.annotation.Autofill;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.enumeration.OperationType;
import com.sky.vo.DishVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishMapper {
    @Autofill(value = OperationType.INSERT)
    void addDish(Dish dish);

    List<DishVO> getPage(DishPageQueryDTO dishPageQueryDTO);

    void delete(List<Long> ids);

    DishVO selectById(Long id);

    @Autofill(value = OperationType.UPDATE)
    void update(Dish dish);


    List<Dish> getlist(Dish dish);

    int getByStatus(Integer status);
}
